\hypertarget{classphga}{
\section{phga Class Reference}
\label{classphga}\index{phga@{phga}}
}
{\tt \#include $<$phga.h$>$}

Collaboration diagram for phga:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=400pt]{classphga__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hyperlink{classphga_4b7f7a20766d59c11de02444e56578fe}{phga} (long array\_\-size, int max\_\-population\_\-size, int tournament\_\-type, float max\_\-fraction\_\-of\_\-population\_\-selected, int max\_\-participants)
\item 
\hyperlink{classphga_4d3c84209df6a7c024368abd7bbe688d}{$\sim$phga} ()
\item 
void \hyperlink{classphga_d332da337c711038eb8593c42dcc408e}{setFitnessFunction} (float($\ast$fitness\_\-pointer)(int $\ast$chromossome, int \hyperlink{classphga_3c14658cf55f763872d7074f183036d2}{generation}, long array\_\-size))
\item 
bool \hyperlink{classphga_dfdb00b981e9d00d2c6e52676b8356ff}{evolve} (int population\_\-size)
\item 
bool \hyperlink{classphga_4f7997d04d57d47ae848a57e10be4af7}{checkStopCondition} ()
\item 
float $\ast$ \hyperlink{classphga_da110b7fffdc5390690c98da8613be1a}{result} ()
\item 
void \hyperlink{classphga_062841f1a47b29c959c3b922da21a9dc}{printResult} ()
\item 
void \hyperlink{classphga_7ab1619daec6b94f76559c7deda41310}{printSimpleResult} ()
\item 
void \hyperlink{classphga_c359307681383a738062cef8fe9d8385}{enableHillClimbing} (float chance\_\-of\_\-hill\_\-climbing, int apply\_\-hill\_\-climbing)
\item 
void \hyperlink{classphga_12da5812954b69e675ba7e499c6c5447}{enableElitism} ()
\item 
void \hyperlink{classphga_dc0d735f3fb80e638b314ab64c77285c}{enablePrintTreeEachGeneration} ()
\item 
void \hyperlink{classphga_a3d715982132de1b8081a0fd42c5010a}{setMetric} (int build\_\-metric, int cut\_\-metric)
\item 
void \hyperlink{classphga_3e696da4be98576405de127377866255}{setK} (float k)
\item 
void \hyperlink{classphga_81b19eea368d260649c0c04e2728c592}{enableFastLog} ()
\item 
void \hyperlink{classphga_9d459130e1169aa5c1332a793bce4584}{setMutation} (int percent)
\item 
void \hyperlink{classphga_938750a48731456b0b4f8631de7fa0a0}{setFatherMother} ()
\item 
void \hyperlink{classphga_f4703ed21809af8b4c5d2be008a5640c}{setLayersProbability} (float $\ast$layers\_\-probability, int number\_\-of\_\-layers)
\item 
void \hyperlink{classphga_f8de9b68a3f7bd7795a8fa6dcfe1bd7d}{computeCCCs} ()
\item 
void \hyperlink{classphga_6579a2b7a195cc3bdd0e7cbddfd1de56}{computeAndPrintCCCs} ()
\item 
void \hyperlink{classphga_6807afc87a4eb57d50dc1a057e23831d}{setEnding} (int ending\_\-type, int($\ast$ending\_\-function)(int $\ast$$\ast$possible\_\-building\_\-blocks, int $\ast$blocks, int array\_\-size, float $\ast$cccs, int number\_\-of\_\-bbs))
\end{CompactItemize}
\subsection*{Public Attributes}
\begin{CompactItemize}
\item 
int \hyperlink{classphga_3c14658cf55f763872d7074f183036d2}{generation}
\end{CompactItemize}


\subsection{Constructor \& Destructor Documentation}
\hypertarget{classphga_4b7f7a20766d59c11de02444e56578fe}{
\index{phga@{phga}!phga@{phga}}
\index{phga@{phga}!phga@{phga}}
\subsubsection[{phga}]{\setlength{\rightskip}{0pt plus 5cm}phga::phga (long {\em array\_\-size}, \/  int {\em max\_\-population\_\-size}, \/  int {\em tournament\_\-type}, \/  float {\em max\_\-fraction\_\-of\_\-population\_\-selected}, \/  int {\em max\_\-participants})}}
\label{classphga_4b7f7a20766d59c11de02444e56578fe}


\hypertarget{classphga_4d3c84209df6a7c024368abd7bbe688d}{
\index{phga@{phga}!$\sim$phga@{$\sim$phga}}
\index{$\sim$phga@{$\sim$phga}!phga@{phga}}
\subsubsection[{$\sim$phga}]{\setlength{\rightskip}{0pt plus 5cm}phga::$\sim$phga ()}}
\label{classphga_4d3c84209df6a7c024368abd7bbe688d}




\subsection{Member Function Documentation}
\hypertarget{classphga_4f7997d04d57d47ae848a57e10be4af7}{
\index{phga@{phga}!checkStopCondition@{checkStopCondition}}
\index{checkStopCondition@{checkStopCondition}!phga@{phga}}
\subsubsection[{checkStopCondition}]{\setlength{\rightskip}{0pt plus 5cm}bool phga::checkStopCondition ()}}
\label{classphga_4f7997d04d57d47ae848a57e10be4af7}


\hypertarget{classphga_6579a2b7a195cc3bdd0e7cbddfd1de56}{
\index{phga@{phga}!computeAndPrintCCCs@{computeAndPrintCCCs}}
\index{computeAndPrintCCCs@{computeAndPrintCCCs}!phga@{phga}}
\subsubsection[{computeAndPrintCCCs}]{\setlength{\rightskip}{0pt plus 5cm}void phga::computeAndPrintCCCs ()}}
\label{classphga_6579a2b7a195cc3bdd0e7cbddfd1de56}


\hypertarget{classphga_f8de9b68a3f7bd7795a8fa6dcfe1bd7d}{
\index{phga@{phga}!computeCCCs@{computeCCCs}}
\index{computeCCCs@{computeCCCs}!phga@{phga}}
\subsubsection[{computeCCCs}]{\setlength{\rightskip}{0pt plus 5cm}void phga::computeCCCs ()}}
\label{classphga_f8de9b68a3f7bd7795a8fa6dcfe1bd7d}


\hypertarget{classphga_12da5812954b69e675ba7e499c6c5447}{
\index{phga@{phga}!enableElitism@{enableElitism}}
\index{enableElitism@{enableElitism}!phga@{phga}}
\subsubsection[{enableElitism}]{\setlength{\rightskip}{0pt plus 5cm}void phga::enableElitism ()}}
\label{classphga_12da5812954b69e675ba7e499c6c5447}


\hypertarget{classphga_81b19eea368d260649c0c04e2728c592}{
\index{phga@{phga}!enableFastLog@{enableFastLog}}
\index{enableFastLog@{enableFastLog}!phga@{phga}}
\subsubsection[{enableFastLog}]{\setlength{\rightskip}{0pt plus 5cm}void phga::enableFastLog ()}}
\label{classphga_81b19eea368d260649c0c04e2728c592}


\hypertarget{classphga_c359307681383a738062cef8fe9d8385}{
\index{phga@{phga}!enableHillClimbing@{enableHillClimbing}}
\index{enableHillClimbing@{enableHillClimbing}!phga@{phga}}
\subsubsection[{enableHillClimbing}]{\setlength{\rightskip}{0pt plus 5cm}void phga::enableHillClimbing (float {\em chance\_\-of\_\-hill\_\-climbing}, \/  int {\em apply\_\-hill\_\-climbing})}}
\label{classphga_c359307681383a738062cef8fe9d8385}


\hypertarget{classphga_dc0d735f3fb80e638b314ab64c77285c}{
\index{phga@{phga}!enablePrintTreeEachGeneration@{enablePrintTreeEachGeneration}}
\index{enablePrintTreeEachGeneration@{enablePrintTreeEachGeneration}!phga@{phga}}
\subsubsection[{enablePrintTreeEachGeneration}]{\setlength{\rightskip}{0pt plus 5cm}void phga::enablePrintTreeEachGeneration ()}}
\label{classphga_dc0d735f3fb80e638b314ab64c77285c}


\hypertarget{classphga_dfdb00b981e9d00d2c6e52676b8356ff}{
\index{phga@{phga}!evolve@{evolve}}
\index{evolve@{evolve}!phga@{phga}}
\subsubsection[{evolve}]{\setlength{\rightskip}{0pt plus 5cm}bool phga::evolve (int {\em population\_\-size})}}
\label{classphga_dfdb00b981e9d00d2c6e52676b8356ff}


\hypertarget{classphga_062841f1a47b29c959c3b922da21a9dc}{
\index{phga@{phga}!printResult@{printResult}}
\index{printResult@{printResult}!phga@{phga}}
\subsubsection[{printResult}]{\setlength{\rightskip}{0pt plus 5cm}void phga::printResult ()}}
\label{classphga_062841f1a47b29c959c3b922da21a9dc}


\hypertarget{classphga_7ab1619daec6b94f76559c7deda41310}{
\index{phga@{phga}!printSimpleResult@{printSimpleResult}}
\index{printSimpleResult@{printSimpleResult}!phga@{phga}}
\subsubsection[{printSimpleResult}]{\setlength{\rightskip}{0pt plus 5cm}void phga::printSimpleResult ()}}
\label{classphga_7ab1619daec6b94f76559c7deda41310}


\hypertarget{classphga_da110b7fffdc5390690c98da8613be1a}{
\index{phga@{phga}!result@{result}}
\index{result@{result}!phga@{phga}}
\subsubsection[{result}]{\setlength{\rightskip}{0pt plus 5cm}float$\ast$ phga::result ()}}
\label{classphga_da110b7fffdc5390690c98da8613be1a}


\hypertarget{classphga_6807afc87a4eb57d50dc1a057e23831d}{
\index{phga@{phga}!setEnding@{setEnding}}
\index{setEnding@{setEnding}!phga@{phga}}
\subsubsection[{setEnding}]{\setlength{\rightskip}{0pt plus 5cm}void phga::setEnding (int {\em ending\_\-type}, \/  int($\ast$)(int $\ast$$\ast$possible\_\-building\_\-blocks, int $\ast$blocks, int array\_\-size, float $\ast$cccs, int number\_\-of\_\-bbs) {\em ending\_\-function})}}
\label{classphga_6807afc87a4eb57d50dc1a057e23831d}


\hypertarget{classphga_938750a48731456b0b4f8631de7fa0a0}{
\index{phga@{phga}!setFatherMother@{setFatherMother}}
\index{setFatherMother@{setFatherMother}!phga@{phga}}
\subsubsection[{setFatherMother}]{\setlength{\rightskip}{0pt plus 5cm}void phga::setFatherMother ()}}
\label{classphga_938750a48731456b0b4f8631de7fa0a0}


\hypertarget{classphga_d332da337c711038eb8593c42dcc408e}{
\index{phga@{phga}!setFitnessFunction@{setFitnessFunction}}
\index{setFitnessFunction@{setFitnessFunction}!phga@{phga}}
\subsubsection[{setFitnessFunction}]{\setlength{\rightskip}{0pt plus 5cm}void phga::setFitnessFunction (float($\ast$)(int $\ast$chromossome, int {\bf generation}, long array\_\-size) {\em fitness\_\-pointer})}}
\label{classphga_d332da337c711038eb8593c42dcc408e}


\hypertarget{classphga_3e696da4be98576405de127377866255}{
\index{phga@{phga}!setK@{setK}}
\index{setK@{setK}!phga@{phga}}
\subsubsection[{setK}]{\setlength{\rightskip}{0pt plus 5cm}void phga::setK (float {\em k})}}
\label{classphga_3e696da4be98576405de127377866255}


\hypertarget{classphga_f4703ed21809af8b4c5d2be008a5640c}{
\index{phga@{phga}!setLayersProbability@{setLayersProbability}}
\index{setLayersProbability@{setLayersProbability}!phga@{phga}}
\subsubsection[{setLayersProbability}]{\setlength{\rightskip}{0pt plus 5cm}void phga::setLayersProbability (float $\ast$ {\em layers\_\-probability}, \/  int {\em number\_\-of\_\-layers})}}
\label{classphga_f4703ed21809af8b4c5d2be008a5640c}


\hypertarget{classphga_a3d715982132de1b8081a0fd42c5010a}{
\index{phga@{phga}!setMetric@{setMetric}}
\index{setMetric@{setMetric}!phga@{phga}}
\subsubsection[{setMetric}]{\setlength{\rightskip}{0pt plus 5cm}void phga::setMetric (int {\em build\_\-metric}, \/  int {\em cut\_\-metric})}}
\label{classphga_a3d715982132de1b8081a0fd42c5010a}


\hypertarget{classphga_9d459130e1169aa5c1332a793bce4584}{
\index{phga@{phga}!setMutation@{setMutation}}
\index{setMutation@{setMutation}!phga@{phga}}
\subsubsection[{setMutation}]{\setlength{\rightskip}{0pt plus 5cm}void phga::setMutation (int {\em percent})}}
\label{classphga_9d459130e1169aa5c1332a793bce4584}




\subsection{Member Data Documentation}
\hypertarget{classphga_3c14658cf55f763872d7074f183036d2}{
\index{phga@{phga}!generation@{generation}}
\index{generation@{generation}!phga@{phga}}
\subsubsection[{generation}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf phga::generation}}}
\label{classphga_3c14658cf55f763872d7074f183036d2}




The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
/home/ask/lcr/svn/Projetos/PhGA\_\-Project/phga/\hyperlink{phga_8h}{phga.h}\item 
/home/ask/lcr/svn/Projetos/PhGA\_\-Project/phga/\hyperlink{phga_8cpp}{phga.cpp}\end{CompactItemize}
